package com.twu.biblioteca;

public class Book {
    private String title;
    private boolean isReserved;

    public Book(String title) {
        this.title = title;
        isReserved = false;
    }

    public String getTitle() {
        return title;
    }


    public boolean reserve() {
        if (isReserved)
            return false;
        else {
            isReserved = true;
            return true;
        }
    }


}
